package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(业务流程审批实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ActivitiBasuness extends Model<ActivitiBasuness> {

	private static final long serialVersionUID = 1616999311267L;

	@TableId(value = "aid", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "aid" , value = "")
	private String aid;

	@NotNull(message = "流程id不能为空")
	@ApiModelProperty(name = "activitiId" , value = "流程的ID")
	private String activitiId;

	@NotBlank(message = "类型非空")
	@ApiModelProperty(name = "types" , value = "类型")
	private String types;

	@ApiModelProperty(name = "createPerson" , value = "创建人")
	private String createPerson;

	@NotNull(message = "业务主键不能为空")
	@ApiModelProperty(name = "businessKey" , value = "业务主键")
	private String businessKey;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "")
	private Integer isDelete;

	@ApiModelProperty(name = "remarks" , value = "备注信息")
	private String remarks;

	@ApiModelProperty(name = "startTime" , value = "开始时间")
	private String startTime;

	@ApiModelProperty(name = "endTime" , value = "结束时间")
	private String endTime;
    

}
